/**
 * Copyright (C), 2015-2020, LSTAR
 * FileName: FriendLink
 * Author:   OneStar
 * Date:     2020/3/11 21:07
 * Description: 友链实体类
 * History:
 * <author>          <time>          <version>          <desc>
 * oneStar           修改时间           版本号              描述
 */
package com.audaque.springboot.foshanupload.web.datajpademo.model.entity;

import com.audaque.springboot.foshanupload.jpa.base.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.*;
import java.util.Date;

@Data

@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "t_friend")
public class FriendLink extends BaseEntity {


    @NotBlank(message = "博客名称不能为空")
    private String blogname;
//    @NotBlank(message = "博客地址不能为空")
    private String blogaddress;
//    @NotBlank(message = "图片地址不能为空")
    private String pictureaddress;
    @Temporal(TemporalType.TIMESTAMP)
    private Date createTime;

}
